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: 02/29/1652, input_format=mm/dd/yyyy

SOLUTION: 29/02/1652

PROBLEM: 08/01/1912, input_format=mm/dd/yyyy

SOLUTION: 01/08/1912

PROBLEM: 11/17/1783, input_format=mm/dd/yyyy

SOLUTION:
17/11/1783