https://mytecharm.com.co/post/to-find-the-max-min-elements-in-a-array-b5ikao