Databricks interview question

Easy leetcode questions on arrays.