In this task, you are given a date in a particular format and you need to convert to another format. If given format is "dd/mm/yyyy" then convert to "mm/dd/yyyy". If given format is "mm/dd/yyyy" then convert to "dd/mm/yyyy".
--------
Question: 24/10/1757, input_format=dd/mm/yyyy

Answer: 10/24/1757


Question: 25/05/1774, input_format=dd/mm/yyyy

Answer: 05/25/1774


Question: 02/18/1935, input_format=mm/dd/yyyy

Answer:
18/02/1935