Daily challenge for 2025-05-20
140. Digits Product
Write a function solve that returns the smallest number whose digits multiply to a given product, or -1 if impossible.
Example:Input: 12Output: 26
Explanation: 2 * 6 = 12
Run this challenge interactively in Python or JavaScript when the app loads.