No Idea!

  • + 0 comments

    The integer array in the second line might contain duplicates.

    You basically get rid of duplicates by converting it to a set, which leads to a wrong solution.