What is the output of the following code?
```
double[] myList = {1, 5, 5, 5, 5, 1};
double max = myList[0];
int indexOfMax = 0;
for (int i = 1; i < myList.length; i++) {
if (myList[i] > max) {
max = myList[i];
indexOfMax = i;
}
}
System.out.println(indexOfMax);
```
a. 0
b. 1
c. 2
d. 3
e. 4
b. 1
Computer Science & Information Technology