Hi guys

Given the array {a,b,c,d,e} and the string "y x q z b a"
I need a formula that returns a or 1 as the first element in the array to be found in the string

Can you guys help?

Thanks