Write a function that receives the time in 12-hour AM/PM format and returns a string representation of the time in military (24-hour) format.
convert_time(“07:05:45PM”) ➞ “19:05:45”
convert_time(“12:40:22AM”) ➞ “00:40:22”
convert_time(“12:45:54PM”) ➞ “12:45:54”