Frage im Vorstellungsgespräch bei Deutsche Bank

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