LeetCode 287 - Find the Duplicate Number Solution (Optimal)