CoverMyMeds interview question

2 medium-level coding exercises- iteration with possible recursive solution, using a hashmap type data structure to store data.