Amazon Interview Question

2 coding question to solve in 90 minutes. Simple array, string and reg exp related questions. Multiple validation checks to be satisifed and has to pass all predefined test cases