Ad
  • Custom User Avatar

    The correct result for arr1 = [1, 2, 2] and arr2 = [1] is [2, 2]; your solution is wrong.