Given a string str with repeated characters, the activity will be to rearrange the characters in a string these kinds of that no two adjacent characters are the same.Whilst you can stay clear of collisions by using a cryptographic hash, this is not done in exercise because cryptographic hashes are comparatively very slow to compute.There are variou