HCLTech Interview Question

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