at the beginning of the execution of the main while loop the array looks like thisthe first inner while loop moves one index to the right until it lands on index because the value at that index is greater than at this pointthe first while loop breaks and does not continue at each test of the condition in the first while loopgreater_than_pivot_index + is evaluated only if the while loop' test condition evaluates to true this makes the search for the element greater than the pivot progress to the next element on the right the second inner while loop moves one index at time to the leftuntil it lands on index whose value is less than at this pointneither inner while loop can be executed any furtherif greater_than_pivot_index less_than_pivot_indextemp unsorted_array[greater_than_pivot_indexunsorted_array[greater_than_pivot_indexunsorted_array[less_than_pivot_indexunsorted_array[less_than_pivot_indextemp elsebreak