Specified a string str with recurring figures, the endeavor would be to rearrange the people inside a string such that no two adjacent figures are classified as the same.Based on the Twitter Procedures, Twitter accounts will be considered being "spamming" if utilized to put up numerous updates using a # which might be unrelated towards the hashtag