Databricks interview question

Four coding questions in online round.