Ad
  • Custom User Avatar

    this solution doesn't take care of scenarious where the length of the array are nit equal. in such situation this solution will return true. However, if both are having a different length certainly its expected to return false because the longer array will have some values that can't be compared alongside the shorter one.