#include <algorithm> class Solution { public: void reverseword(string& s,int left,int right){ char ch; while(left<right){ ch=s[left]; s[left]=s[right]; s[right]=ch; left++; right--; } } string ReverseSentence(string str) { int n=str.length(); reverseword(str,0, n-1); int fast=0; int slo...