Pregunta de entrevista de Cloudera

Coding exercises. Nothing too difficult.