Ikigai Labs interview question

2 sums, one using hashmaps