1. Write a piece of code that, given an array ar of integers, computes the largest element of this array.
2. To check the correctness of the code you wrote in Problem 1, write a piece of code that defines a new array ar consisting of 2 elements of type integer and assigns, to elements of this array, values 1 and 2. Trace step-by-step how the piece of code you wrote in Problem 1 will compute the largest element of this array.