1. What will the following code do?
public static void dosomething(int[] arr, int n) {
for (int i = 0; i < n; i++) {
for (int j = i; j < n; j++) {
for (int k = i; k <= j; k++) {
System.out.print(arr[k] + " ");
}
System.out.println();
}
}
}
A. Prints the elements of the array
B. Prints the subsequence of the array
C. Runtime Error
D. Prints the subarray of the array