Add solution for MAXCOUNT

http://www.codechef.com/problems/MAXCOUNT/