Databricks Interview Question

Coding. Just general coding question