Hexwhale interview question

basic programming ,