Pregunta de entrevista de HCLTech

puzzle java program and hurdle works