Leetcode Find The Maximum And Minimum Element In An Array Using Any 3