This means that the index of the last position will always be the length of the list minus 1. In this case, it's 4-1 which equals 3.
1
4-1
3