NiCE interview question

Coding exercise