Zalando interview question

Leetcode questions (Easy - Medium difficulty)