Cloudera Interview Question

Not super hard algorithms questions (Leetcode easy)