Problem Description
0709Input 2:
246432
Output 1:
0079
Output 2:
234642
For Input 1:
You can perform the following sequence of operations: 0709 → 0079.
For Input 2:
You can perform the following sequence of operations: 246432 → 246342 → 243642 → 234642
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.