Check If N and Its Double Exist | Leetcode 1346