Quest Global interview question

oops concept