This is a basic redox reaction coupled with proton transfer. The thiazolidine is oxidized by the removal of two electrons which is coupled with the loss of two protons for charge neutrality. This oxidation is driven by the fact that the Mn4+ of MnO2 is less favored than the more stable Mn2+, thus Mn takes two electrons (and the two protons) from the thiazolidine to produce thiazole and Mn(OH)2. This is a two electron process and does not really occur stepwise.