Next Closest Time

Given a time string in "HH:MM" format, find the next closest time using only the digits from the original time. The result must also be a valid time.

Examples
Input: "19:34"
Output: "19:39"
Hints

Next Closest Time

Given a time string in "HH:MM" format, find the next closest time using only the digits from the original time. The result must also be a valid time.