Count Bubble Sort Swaps for Given Array | FE Prep