Check if all sub-numbers have distinct Digit product
Given a number N, the task is to check if the all sub-numbers of this number have distinct digit product. Note: An N digit number has N*(N+1)/2 sub-numbers. For example, all possible sub-numbers of 975 are 9, 7, 5, 97, 75, 975.Digit product of a number is product of its digits. Examples: Input : N =