Pregunta de entrevista de Block

Find the bug in this program and fix the error