Python solution of problems from LeetCode.
The results should be printed in a comma-separated sequence on a single line.