I was asked this question in the microsoft virtual interview discussion for Office Engg team.
In older days, the cellphones would not have alphabets. In that time the keypad digits from 1-9 would be used to generate alphabets. Later the T9 predictive text algorithm came. In that kind of algorithm, digit 2 would map to characters 'a' to 'c'. Similarly, digit 3 would map to character 'd' to 'f' and so on.

Say when you type "6263" then it displays the words "mane", "name", and "oboe".
How will you design such a algorithm?
He mentioned that how can we start predicting the letters from the first digit itself? Also what will be the complexity of the algorithm? How can we make it better.
I proposed the following:
He asked if we can do any better?
I mentioned that some of these prefixes would be invalid, so number of keys would be small. He was concerned about the space consumption of this algorithm.
He was not satisfied with any of the solutions.. Any suggestions?