Burger King Interview Question

How to solve this issue?