problem description
1
3 2
4 6 5
7 9 8 10
from top to bottom, you can only take one step on the left (L) or right (R) at a time, and then add up the numbers to find the path with the maximum value and the maximum value.
how to write this algorithm in python?