Given a string s, rearrange its characters so that no two adjacent characters are the same. Return any possible rearrangement or an empty string if not possible.
Click Run to execute sample tests.