EY interview question

Write a program to check whether a number is even or odd.