Stripe Coding Interview Question: Business Verification from CSV Records

60 Views
No Comments

Part 1: Parse each CSV row, trim whitespace, and mark a business VERIFIED only when all six KYC fields are present and non-empty; exclude rows without a business name.

Part 2: Also require the full statement descriptor to be 5-31 characters and not match any blocked descriptor; otherwise mark the business NOT VERIFIED.

This problem focuses on parsing CSV rows and applying business verification rules. Each record must be trimmed, rows without a business name should be excluded, and a business can only be marked VERIFIED when all six KYC fields are present and non-empty. In addition, the statement descriptor must be between 5 and 31 characters long and must not match any blocked descriptor; otherwise the business is NOT VERIFIED. The solution is mainly a careful data-cleaning and rule-checking workflow.

END
 0