Given an integer array nums, sort the array in ascending order using the bubble sort algorithm.
Bubble sort repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. This process is repeated until the entire list is sorted.
Visualizer will appear here