class Solution { void printArray(int arr[], int n) {
int arr[] = new int[n]; for(int i = 0 ; i <= n-1 ; i++){ for(int j = 1 ; j <= i ;