No. of comparisons: 0 No. of swaps: 0
              
            
              
            
          
          
                  while(swapped)
                
                
                    swapped = false
                
                
                    for x = 0 to
                    length(list)-1
                
                
                      if list[x]
                    > list[x+1]
                
                
                        swap(list[x], list[x+1])
                
                
                        swapped =
                    true
                
              
                  SHORT EXPLANATION
                
                
                  ------------------
                
                
                  1. Starting at index 0, compare the current element with
                    the next element
                
                
                  
                    - If the current element is greater than the next element,
                    swap them
                
                
                  
                    - If the current element is less than the next element, move
                    to the next element
                
                
                  2. Repeat Step 1 until the list is sorted