if arr is a vector. What does arr.rbegin() point to? The last element in the array, or the imaginary element/location after the last element?
Reverse Iterator
It will point to the last element in the vector. Refer this https://www.geeksforgeeks.org/vector-rbegin-and-rend-function-in-c-stl/