Indeed interview question

Coding challenge