Micro1 Interview Question

About string reorganizing using two priority queue