Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is there a way to build the solution from a base case?
How many ways are there if we fix the position of one stick?
Solve with full IDE support and test cases