1
2
3
4
5
6
Use the "Verify Solution" button to get AI feedback on your C# code.
You are tasked with implementing a C# method ReverseWords that takes a string representing a sentence and returns a new string with the order of words reversed. The individual words themselves should remain unchanged.
For example:
Consider edge cases such as multiple spaces between words, leading/trailing spaces, and empty strings.