Find Maximum Element in Array

Given an array of integers nums, return the maximum element present in the array. The array will contain at least one element.

Difficulty:

Console