Infosys interview question

Even odd program using any programming language