https://www.brokenprogrammers.com/chef-and-distinct-numbers-codechef-solution/