Python execution is coming soon. Write your solution and compare with the official answer in Solutions.