Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

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".

Test Cases
Input
Output
Expected