Implement lazy array and KV store | Databricks Coding Question