From one sequence of digits, another sequence of digits has to be formed as per the following rule:
Single switch: interchange of any two adjacent digits, where one such interchange counts as one step.
Using only single switching, what is the minimum number of steps required to change 51432 to 12345?