Ad
  • Custom User Avatar

    i > arr.length-3

    Length starts counting from 1, so you need to take off one more. Seems to work otherwise.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution