Google Code Jam Problem - T9 Spelling