Irvine Infocom interview question

oops concepts