Time Based Key-Value Store - Medium Python Binary Search Interview Problem | Unnested