Stripe Interview Question

Questions built off an initial question which was basically finding a string in an array