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.
这道题考察对 CSV 数据的解析与业务规则校验。需要先按行读取并去除字段两侧空白,忽略没有 business name 的记录;只有当 6 个 KYC 字段全部存在且非空时,才可以标记为 VERIFIED。第二部分还要求检查 statement descriptor 的长度必须在 5 到 31 个字符之间,并且不能命中黑名单描述符,否则结果应为 NOT VERIFIED。整体思路通常是先做字符串清洗,再逐条应用规则判断,适合用遍历和条件校验完成。