Company: Goldman Sachs_22july
Difficulty: medium
Date Format Conversion Problem Description You are tasked with building a program that takes a date string in various formats and converts it into a standardized format. The program should recognize the incoming format, extract the month, day, and year, and output them in the format MM DD YYYY, where MM is 01-12, DD is 01-31, and YYYY is the four-digit year (e.g. 2019). The program should convert the following five date formats: January 9, 2019 (Full month name) Jan 9, 2019 (Abbreviated month name) 01/09/2019 (MM/DD/YYYY format) 01-09-2019 (MM-DD-YYYY format) 01.09.2019 (MM.DD.YYYY format) Read the input from STDIN and print the output to STDOUT. Do not print arbitrary strings anywhere in the program, as these contribute to the output and test cases will fail. Input Format The only line of input will consist of a string representing a date in one of the following five formats: MMMM D, YYYY → Full month name MMM D, YYYY → Abbreviated month name MM/DD/YYYY → Slash-separated format MM-DD-