Algorithm · Stripe · Easy
You are building the validation layer of a data-ingestion pipeline for a large analytics platform. Records arrive as raw text in a stripped-down CSV layout, and every record must clear a strict set of checks before it may be stored or analyzed. Your function process_csv(csv_string, banned_words, stop_words, mask_col, token_col) is handed three pieces of input: csv_string — the rows of a CSV table, one string per row, forming a table of n rows with six columns each. Every row…