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

[EX Q]: 06/22/1981, input_format=mm/dd/yyyy
[EX A]: 22/06/1981

[EX Q]: 05/08/1993, input_format=mm/dd/yyyy
[EX A]: 08/05/1993

[EX Q]: 02/07/1740, input_format=mm/dd/yyyy
[EX A]:
07/02/1740