How to write a function that takes in a string of one or more words, and returns the same string, but with five or more letter words reversed (only spaces and letters) -
![Longest Substring Without Repeating Characters LeetCode Programming Solutions | LeetCode Problem Solutions in C++, Java, & Python [💯Correct] - Techno-RJ Longest Substring Without Repeating Characters LeetCode Programming Solutions | LeetCode Problem Solutions in C++, Java, & Python [💯Correct] - Techno-RJ](https://technorj.com/wp-content/uploads/2021/12/IMG-20211227-WA0023.jpg)
Longest Substring Without Repeating Characters LeetCode Programming Solutions | LeetCode Problem Solutions in C++, Java, & Python [💯Correct] - Techno-RJ
![05 - Longest Substring with same letters after Replacement || Sliding Window || Interview Prep - YouTube 05 - Longest Substring with same letters after Replacement || Sliding Window || Interview Prep - YouTube](https://i.ytimg.com/vi/u_f_IK-ybto/maxresdefault.jpg)
05 - Longest Substring with same letters after Replacement || Sliding Window || Interview Prep - YouTube
![Amazon | Std. String Class in C++ (English Edition) [Kindle edition] by Singh, Satnam | Languages & Tools | Kindleストア Amazon | Std. String Class in C++ (English Edition) [Kindle edition] by Singh, Satnam | Languages & Tools | Kindleストア](https://m.media-amazon.com/images/I/41L9n2pHo3L.jpg)
Amazon | Std. String Class in C++ (English Edition) [Kindle edition] by Singh, Satnam | Languages & Tools | Kindleストア
![Lexicographically smallest string formed by reversing Substrings of string S exactly K times - GeeksforGeeks Lexicographically smallest string formed by reversing Substrings of string S exactly K times - GeeksforGeeks](https://media.geeksforgeeks.org/wp-content/uploads/20220216112511/Screenshot20220216112416-660x294.png)
Lexicographically smallest string formed by reversing Substrings of string S exactly K times - GeeksforGeeks
![Count of all substrings in a binary string in which count of 1's is strictly more than the count of 0's - Coding Ninjas Count of all substrings in a binary string in which count of 1's is strictly more than the count of 0's - Coding Ninjas](https://files.codingninjas.in/article_images/count-of-all-substrings-in-a-binary-string-in-which-count-of-1-s-is-strictly-more-than-the-count-of-0-s-0-1678799049.jpg)