Databricks Interview Question

three easy and one extremely hard