Consider the following code where $\text{A}$ is an array indexed from $0.$
function foo(A, year, n) {
1 = 0, r = n – 1, c = 0;
while (1 <= r) {
c = c + 1;
m = 1 + (r – 1) // 2;
if (A[m] == year) {
return(c * m);
}
if (A{m} < year) {
1 = m + 1;
} else {
r = m – 1;
}
}
return (-1);
}
function bar () {
A = [2016, 2017, 2018, 2019, 2020, 2021, 2022];
result = foo(A, 2021, 7);
print (result);
}
Here, $\text{a // b}$ represents integer division. For example, $23 / / 10=2$. What will be printed when $\textsf{bar()}$ is executed?