Given a positive integer represented as a string num, return num with the trailing zeros removed.
The result should not have leading zeros (the input is guaranteed to not have leading zeros).
Input: A string num representing a positive integer (no leading zeros).
Output: The string with all trailing zeros removed.
Input: 51230100
Output: 512301
Explanation: Remove the two trailing zeros.Input: 123
Output: 123
Explanation: No trailing zeros.Input: 1000
Output: 1
Explanation: Three trailing zeros removed.1 <= num.length <= 1000num consists of digits onlynum does not have leading zeros