RLI interview question

oops concept