Databricks Interview Question

Medium Leetcode Question with open answer