Itertools Combinations Hackerrank Solution For Sql