HackerEarth Bubble Sort problem solution - TheCScience