Ad
  • Custom User Avatar

    Well, you are literally failing the second example of description. It would help if you printed the input to console (add print(arr) at start). This way you could reason about each failing test case.