Amazon Interview Question

2 Leetcode Easy Questions, Hashtables and sets