Bloomberg Interview Question

In-place algorithm (i.e. no memory allocation) to reverse each word in a string, while keeping the words themselves in the same order.