https://mytecharm.com.co/post/min-and-max-elements-jlodcq