TASK DEFINITION: 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".
PROBLEM: 10/26/1777, input_format=mm/dd/yyyy

SOLUTION: 26/10/1777

PROBLEM: 26/07/1616, input_format=dd/mm/yyyy

SOLUTION: 07/26/1616

PROBLEM: 09/13/1836, input_format=mm/dd/yyyy

SOLUTION:
13/09/1836