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]: 08/31/2018, input_format=mm/dd/yyyy
[EX A]: 31/08/2018

[EX Q]: 09/02/1772, input_format=mm/dd/yyyy
[EX A]: 02/09/1772

[EX Q]: 06/16/1660, input_format=mm/dd/yyyy
[EX A]:
16/06/1660

