Cognizant Interview Question

Write code for even number