CHECK24 Interview Question

It was a Coding challenge in nodejs.