Domanda di colloquio di Tata Consultancy Services

Write a function that determines whether a number is odd or even.