Planting Trees
In a particular field, there are trees in a single row from left to righ
Each tree has a value V. You cut trees from left to right and for ea
tree of value V that you cut, you plant (V + 1) % M trees on the ris
most end with values ranging from 0 to
((V+ 1) % M) - 1.
Initially, there was only one tree with value 2. Find the total numb
of trees present after cutting K trees.
The southern hemisphere refers to the half of the Earth which is to the south of the Equator. It contains all or parts of the five continents which are Antarctica. Africa, Australia, South America, and Asia. Moreover, it has four oceans which are Southern, Indian, South Atlantic, and South Pacific.