Persistent Systems interview question

oops concept coding ruby basics