Arintra interview question

Coding challenge