You are given arrays a1,a2,…,an. What will return the next function Bubble Sort (A) in the next picture.
Link to the image: https://ibb.co/vzFR5kr
Input format
Output format
Print an integer that denotes the answer to the question.
Answer is 2 (to verify this, you can simply implement this procedure)