https://nnautkdlic.blogspot.com/2021/07/how-to-find-max-and-min-value-of.html