Pregunta de entrevista de Databricks

Coding assignment. Signed NDA so cannot share.