Apple interview question

Create a function to validate users from an userData array with given structs and limitations