Nokia interview question

oops concept