Microsoft Interview Question

Arrange the two strings