Pregunta de entrevista de Techversant Infotech

Pattern printing, basic coding problem, identify the error in programs