Midas Interview Question

how to manage shift