https://locaakj.blogspot.com/2024/05/local-maximum-and-minimum-on-graph.html
Local Maximum And Minimum On A Graph