DeCurtis interview question

oops concepts