Problem link : Candy Replenishing Robot
// Before moving to solution read the problem statements carefully from the above link
SOLUTION:
PROBLEM LINK: Melodious password
PROBLEM (In Brief ) :
A password is said to be melodious if -
PROBLEM LINK: Find the Minimum Number
Problem is very easy to solve , simple observation is needed :