class Solution { public: string trans(string s, int n) { // write code here stack<char> a1; stack<char> a2; string s2; for(int i=0;i<n;i++){ if(s[i] == ' '){ while(!a1.empty()){ a2.push(a1.top(...