Infosys interview question

Print even and odd numbers