Paycom interview question

Java OOP explain + give an example Return the most frequent string