Given a time in 12-hour AM/PM format, convert it to military (24-hour) time.
Note: Midnight is 12:00:00 AM on a 12-hour clock and 00:00:00 on a 24-hour clock. Noon is 12:00:00 PM on 12-hour clock and 12:00:00 on 24-hour clock.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains a single string containing a time in 12-hour clock format(hh:mm:ss AM or hh:mm:ss PM.
Convert and print the given time in 24-hour format.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.