You are given a time in 12-hour AM/PM format. Your task is to convert this time into 24-hour format.
The 12-hour format string will be in the format "HH:MM AM" or "HH:MM PM". The 24-hour format should be in "HH:MM" format.
Here's how the conversion works:
"12:00 AM"
"00:00"
Midnight (12:00 AM) in 12-hour format is 00:00 in 24-hour format.
"02:30 PM"
"14:30"
2 PM in 12-hour format is 14:00 in 24-hour format. So, 02:30 PM becomes 14:30.
"05:05 AM"
"05:05"
AM times (excluding 12:xx AM) generally remain the same in 24-hour format. 05:05 AM is 05:05.
"12:00 AM"
"00:00"