Amadeus Interview Question

The apples and oranges 3 box puzzle