Kamcord interview question

Quick take-home coding challenge