Midas interview question

how to manage shift