Given an integer array nums, return a single string containing all elements of nums in order, separated by single spaces. You must build the string recursively without using any loops. For an empty input the result is an empty string (this case will not occur in tests; n >= 1).
Input: An integer array nums.
Output: Return a string of integers separated by single spaces.
Input: [1,2,3,4,5]
Output: 1 2 3 4 5
Explanation: Each element printed in order, separated by spaces.Input: [7]
Output: 7
Explanation: Single element, no separator needed.Input: [-1,-2,-3]
Output: -1 -2 -3
Explanation: Negatives included as-is.1 <= nums.length <= 10^4-10^9 <= nums[i] <= 10^9