J.P. Morgan Interview Question

Given a string, sort its words