Zalando interview question

Codility task