Deutsche Bank Interview Question

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