Databricks interview question

Some leetcode problems, and a data processing problem