KaHa interview question

Coding Question