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: 12/05/1867, input_format=mm/dd/yyyy

Answer: 05/12/1867


Question: 30/01/1707, input_format=dd/mm/yyyy

Answer: 01/30/1707


Question: 24/10/1757, input_format=dd/mm/yyyy

Answer:
10/24/1757