Stripe Interview Question

Basically write a function that takes a string, and an array of strings and tells you if that string is in the array. Not quite that easy, but that's the general gist of it.