https://practice.geeksforgeeks.org/problems/rearrange-characters/0