Write an algorithm that takes a key k and finds all the
keys in a trie that differ from k in exactly one character
position. The algorithm should run in time O(l), where
l is the length of the key, and be independent of the
number of keys in the trie.
There are, of course, only O(l) such keys possible, so a
time complexity of O(l) should be the worst case. Your goal
is to rule out as many possibilities as you can as early as
possible.