Cognizant interview question

Write code for even number