Atos-Syntel interview question

oops concept