https://online.codingblocks.com/player/14000/content/2039/5155 how to avoid the cases of duplicate combinations??