Input: [8, 2, 10, 1, 5]
Output: Maximum Element: 10, Minimum Element: 1
Explanation: In the input array [8, 2, 10, 1, 5], the maximum element is 10, and the minimum element is 1.Input: [8, 2, 10, 1, 5]
Output: Maximum Element: 10, Minimum Element: 1
Explanation: In the input array [8, 2, 10, 1, 5], the maximum element is 10, and the minimum element is 1.