Isn't the most obvious just an off-by-one error? It checked the 0th position in the array of former passwords, and output the index as the output. We start at index 0 while programming for the first entry in an array.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments