Mastering Array Algorithms: How To Find The Maximum Value Efficiently