Repeating And Missing Element Leetcode Problem