ZTE Interview Question

Can you point out what’s wrong in the given code