Difference between array and arraylist and when to use those?. Difference between C and Java. binary search tree or not?. Given a string, print the character which appears the maximum number of times in the string. The string will contain only ascii characters. If there is a tie in the maximum number of times a character appears in the string, print the character which appears first in the string.