KaHa interview question

Reverse strings word wise and find the max length string