This problem will help you to get experience on where to use the set even if it is not mentioned in the problem statement. It might be helpful to use the Set
if you encounter a similar problem during your interview. This is because it demonstrates knowledge of a commonly used data structure
and a background in mathematics.
Mark As Completed Discussion

