SAP Interview Question

Rearrange String and opposite way