Xiaomi interview question

Buck-boost circuit working algorithm and how