Add #7 Python solution