Remove K Digits

medium
Given string num representing a non-negative integer num, and an integer k, print the smallest possible integer after removing k digits from num.

Input Format

A string num A number k

Output Format

A string representing smallest possible integer after removing k digits from num. Output should not contain any leading 0 except for the 0 itself.

Constraints

1: 1 <= k <= num.length <= 10^5
2: num consists of only digits.
3: num does not have any leading zeros except for the zero itself.

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
1432219
3
Output
1219
Previous
132 Pattern
Next
Asteroid Collision

Related Questions