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".
--------
Question: 12/22/2014, input_format=mm/dd/yyyy

Answer: 22/12/2014


Question: 09/03/1616, input_format=dd/mm/yyyy

Answer: 03/09/1616


Question: 04/05/1749, input_format=dd/mm/yyyy

Answer:
05/04/1749