Posts

Rearrange characters in a string such that no two adjacent are same