<prompt> Kutokana na safu ya integer, kujenga kazi ya kupata thamani ya juu katika safu.Soma maelekezo na kuunda algorithm kukamilisha yao.  <response>: Here is an algorithm to find the maximum value in an array of integers:1. Start by defining a function that takes an array of integers as an input.2. Create a variable max and initialize it with the first element of the array.3. Loop through the array starting from the second element.4. For each element in the array, compare it with the current max value.5. If the current element is greater than the max value, update the max value with the current element.6. Continue this process until all elements in the array have been compared.7. Return the max value, which now contains the maximum value in the array.In Python, the code for the above algorithm would be:pythondef find_maxarr: max arr0 for i in range1, lenarr: if arri max: max arri return max 