Burger King interview question

How to solve this issue?