Pergunta de entrevista da empresa HCLTech

I was asked to make a program for odd and even number.