ashish n element arrange line these element represent integer a_i value element b_i type element possible type 0 1 he want sort element nondecrease value a_ihe perform follow operation number time Select element j b_i ne b_j swap that swap element different type tell sort element nondecrease value a_i perform number operation