Sentry (CA) interview question

The OA was a string manipulation question