algorithms.tutorialhorizon.com
Colorful Numbers | Algorithms
Objective: Given a number, find out whether its colorful or not. Colorful Number: When in a given number, product of every digit of a sub-sequence are different. That number is called Colorful Number.