Scotiabank Interview Question

How to identify which line of the code you are having error?