TPP Interview Question

Where is the mistake in this code