Given an integer n. The task is to find number of digits of smallest possible integer x such that the product of its digits is equal to n. Program should return the number of digits in x amd return -1 if such a number does not exist