Domanda di colloquio di Deutsche Bank

Two problems using a hash table, one using a greedy approach.