Topcoder ScrabFortune problem