Amazon Interview Question

Sentence rearrangement