Pergunta de entrevista da empresa HCLTech

puzzle java program and hurdle works