<prompt> Write an algorithm to solve a given problem in pseudocode.Problem: Suppose we want to find the smallest number in a given array.  <response>: Here is an example of pseudocode to solve the problem of finding the smallest number in a given array:Function findSmallestNumberarray Set smallestNumber to array0 For each number in array If number smallestNumber smallestNumber number End If End For Return smallestNumberEnd Function 