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".

03/07/1937, input_format=dd/mm/yyyy
07/03/1937

27/08/1830, input_format=dd/mm/yyyy
08/27/1830

31/03/1948, input_format=dd/mm/yyyy

03/31/1948