Time Based Key Value Store Leetcode Problems Sql W3schools