Given an array of integers nums, return the array sorted in ascending order. Implement the sorting logic yourself rather than calling a built-in sort.
nums
Whenever you're ready, walk me through your approach or go straight to the code. The requirements are in the Question tab.