FunTech interview question

Definition of Class and Method