Persistent Systems Interview Question

Basically there were two rounds of technical interview First round: 1) coding pattern printing 2) Duplicacy in an array 3)concepts of oops I answered all 2nd round: 1)@nd max freq of character in a string