Doctolib interview question

Coding challenge which was quite straight forward.