Smartlation interview question

Excellent proof of design