Pergunta de entrevista da empresa Intrepid Pursuits

// Write a function that takes in military (24 hour) time and returns 12 hour time. // Example: “0800” => “8:00 AM” // Example: “1600” => “4:00 PM” // Example: “1201” => “12:01 PM” // Example: “0000” => “12:00 AM” // Example: “0001” => “12:01 AM” // Example: “0100” => “1:00 AM” // Example: “2359” => “11:59 PM”