Solve array and list algorithms | Amazon