Paycom interview question

few java programs, oops concepts