Paycom Interview Question

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