Leetcode 287 | Find the Duplicate Number | Linear Time Solution (Detailed Explanation)