Merging of two arrays and sort it wthout using third array?
If i Given input as abcd. I want output as dabc cdab bcda abcd
If i given the input as abcde . The output is eabcd deabc cdeab...
Separate names with a comma.