https://mimzivvimzi.medium.com/using-set-length-with-an-easy-level-leetcode-contains-duplicate-e2fe840356f7