The first line of input contains a ‘T’ number of test cases. The first line of input of each test case contains a string 'TIME', which represents the time in “HH: MM” format.
For each test case, return the string which is the next closest time to the given string.
You are not required to print anything explicitly. It has already been taken care of. Just implement the given function.
1 <= T <= 100 | TIME | = 5 Time Limit: 1 sec