Write a function that takes in a user's email and password and returns true if the user exists in an array of user objects and the password is correct.
The candidate's solution correctly implements the function as specified in the question. It iterates through the array of users and returns true if it finds a match for the email and password.
Evaluated at: 2022-11-22 00:16:23