Pregunta de entrevista de Tata Consultancy Services

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