topcoder; solve "MostCommonLetters" from SRM #416 (Div. 2)