Pergunta de entrevista da empresa Techversant Infotech

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