Add (slow) #10 Python solution