Databricks interview question

General background introduction. Then went to coding