Create a function that converts 12-hour time to 24-hour time or vice versa. Return the output as a string.
Examples
<br>convertTime("12:00 am")<br>output = "0:00"<br><br>convertTime("6:20 pm")<br>output = "18:20"<br><br>convertTime("21:00")<br>output = "9:00 pm"<br><br>convertTime("5:05")<br>output ="5:05 am"<br>
Notes
- A 12-hour time input will be denoted with an am or pm suffix.

- A 24-hour input time contains no suffix.