Jobs A, B, C, D and E with running time of 13, 10, 5, 9 and 1 respectively arrive at computer in the time order 0, 5, 7, 10, 12. If the priority of these jobs is in the order C, B, E, A and D and the policy used for scheduling is that a higher priority job always succeeds in preempting. Context switching takes 1 unit of time. The exact number of context switches needed are _______. (Do not count the context switches at time 0 and at the end).
plz explain this question