Amazon Interview Question

reverse words