Strings max frequency

here is the code please explain: