Databricks Interview Question

Medium to hard coding questions + concurrence.