<prompt> Kutokana na safu ya integer, kuunda algorithm kurudi kipengele kubwa.4, 2, 7, 9, 1  <response>: To find the largest element in an array of integers, we can use a simple algorithm that compares all the elements in the array.Here is one example of how this can be done:1. Initialize a variable max_value with the value of the first element in the array.2. Loop through the array, starting from the second element index 1.3. If the current element is greater than max_value, update max_value with the value of the current element.4. Keep looping until all elements have been compared.5. Return max_value as the largest element in the array.Here is the pseudocode for the algorithm:def find_largest_elementarr: max_value arr0 for i in range1, lenarr: if arri max_value: max_value arri return max_valueAnd here is an example of how you can apply this algorithm to the input given:Input: 4, 2, 7, 9, 1 Initialize max_value with the first element in the array max_value 4 Compare max_value with the second element 2 2 is not greater than 4, so max_value remains unchanged Compare max_value with the third element 7 7 is greater than 4, so max_value is updated to 7 Compare max_value with the fourth element 9 9 is greater than 7, so max_value is updated to 9 Compare max_value with the fifth element 1 1 is not greater than 9, so max_value remains unchanged Return max_value as the largest element in the array return 9Output: 9. 