Check if the input array nums has only one element. If so, return the element as a string.
Check if the input array nums has only two elements. If so, return them joined by a division sign.
For input arrays with more than two elements, construct the result string by placing the first element of nums followed by a division sign and an opening parenthesis.
Append the remaining elements of nums joined by division signs.