Amazon Interview Question

Find the errors in the code.