Cloudera interview question

Fairly easy DS questions from Leetcode