Cloudera interview question

Coding exercises. Nothing too difficult.