Add #42 Python solution