Xiaomi Interview Question

Buck-boost circuit working algorithm and how