Google CodeJam Qual Africa '10, B. ReverseWords