Problem of the day

You are given an integer array 'arr' of size 'N'.
You must sort this array using 'Bubble Sort'.
Change in the input array itself. You don't need to return or print the elements.
Example:
Input: ‘N’ = 7
'arr' = [2, 13, 4, 1, 3, 6, 28]
Output: [1 2 3 4 6 13 28]
Explanation: After applying bubble sort on the input array, the output is [1 2 3 4 6 13 28].
The first line contains an integer 'N' representing the size of the array.
The second line contains 'N' single space-separated integers representing the elements of the array.
Output format :
The output contains the array elements after the sorting.
7
2 13 4 1 3 6 28
1 2 3 4 6 13 28
After applying bubble sort on the input array, the output is [1 2 3 4 6 13 28].
5
9 3 6 2 0
0 2 3 6 9
After applying bubble sort on the input array, the output is [0 2 3 6 9].
1 <= N <= 10^3
0 <= arr[i] <= 10^9
Time Limit: 1 sec