Pergunta de entrevista da empresa Cloudera

Not super hard algorithms questions (Leetcode easy)