Amazon interview question

2 Leetcode Easy Questions, Hashtables and sets