basic version
sol using combinations in itertools