as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a pseudo-code algorithm to find the maximum number in a given list of numbers.
user
algorithm:
1. create a new list to store the maximum numbers.
2. start a for loop with index i for the given list of numbers.
3. compare the current number with other numbers in the list.
4. if the current number is greater, store it in the new list.
5. if the current number is lesser, do nothing.
6. after the for loop is complete, the new list contains the maximum numbers.
7. find the maximum of the maximum numbers and store it in a new variable.
8. return the new variable.
assistant