Meta Interview Question

solving and debugging a code