Ad
  • Default User Avatar

    You're right, but the kata description explicitly says "It is guaranteed that a and b are both present in arr", so for this specific task this does the trick.