Mphasis Interview Question

oops concept, even odd number