Xiaomi interview question

Related to the role specific