A String Question

rearrange the characters of a string such that characters should not be at original position. Repeatation of characters is also allowed.
print "not possible" if it is impossible to arrange them.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.