Intuit interview question

Another question that required loop within a loop or hash maps.