Databricks interview question

Algorithm and design questions