Xiaomi interview question

Leetcode easy to medium python questions