https://medium.com/leetsolve/c-solution-to-coding-challenge-287-find-the-duplicate-number-d99fc08814be