Permutation and reverse

Problem Name:
Permutation and reverse
Site:HackerEarth
Links:
Tags:
Problem setters: