Given a long number and you have to determine a number which is smaller than the number (or equal) as well as its digits must be arranged inÂ non-decreasingÂ order.

Last year, the Infinite House of Pancakes introduced a new kind of pancake. It has a happy face made of chocolate chips on one side (the “happy side”), and nothing on the other side (the “blank side”).