New t9 prediction code for hacker rank