Stripe interview question

Parsing the HTTP Accept-Language header