Find The Maximum And Minimum Element In The Array