Apple Interview Question

How to find bugs in some existing code.