Databricks Interview Question

Four coding questions in online round.