2058. Find the Minimum and Maximum Number of Nodes Between Critical Points - Explanation

Problem Link