http://www.nxcoding.com/archives/leetcode-daily-781-rabbits-in-forest-using-greedy-and-counting