You are given a sequence of words. Return the same words in reverse order, separated by a single space.
This problem is part of Strings practice and is designed to strengthen the Character Counting pattern.
Return one line containing the words in reverse order.
Input:
3
logic nexo alpha
Output:
alpha nexo logic
Explanation:
1 <= n <= 10^5Each word contains only lowercase English letters.Implement the starter function for this Easy problem. Read from the raw input string and return only the required answer, with no labels or debug text.
Run Code checks the visible sample cases. Submit checks those samples plus additional hidden cases that follow the same input format and constraints.
3 logic nexo alpha
alpha nexo logic