You are given two lists of trade strings called house trades and street trades. Each trade is represented as a comma-separated string with four fields:
- Symbol: A 4-letter string (left-padded by spaces if necessary).
- Side: Either
"B"(buy) or"S"(sell). - Quantity: A 4-digit number (left-padded by zeros).
- ID: A 6-character alphanumeric string.
For example, the string "AAPL,B,0100,ABC123" represents a buy order for 100 shares of "AAPL" with ID "ABC123".
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected