Apple Interview Question

The only way I could do that was if