Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use recursion to try all such paths and find the one with the maximum value.
Solve with full IDE support and test cases