Mphasis interview question

oops concept, even odd number