Count Of Valleys And Mountains
1. You are given a number n, representing the number of upstrokes / and number of downstrokes . 2. You are required to find the number of valleys and mountains you can create using strokes. E.g. Note -> At no point should we go below the sea-level. (number of downstrokes should never be more than number of upstrokes).
0 <= n <= 15
A number n
A number representing the number of valleys and mountains you can create using strokes.