One.com interview question

Coding test in node js