CHECK24 interview question

Solving developer task.