hackerrank introduction to sets problem solution in python programming