maxWealth to 0 to keep track of the maximum wealth found.accounts array.currentWealth to 0.currentWealth.maxWealth.currentWealth is greater than maxWealth, update maxWealth with the value of currentWealth.maxWealth as the wealth of the richest customer.