GenInvo interview question

A mini coding live question.