Algorithm · Voleon · Hard
Implement process_exchange(events). The events parameter is a list of space-separated record strings describing activity on the Berkeley Exchange. The function should return the output lines as a list of strings. The input records include print and volume-check records for Part 1, and order records for Part 2. Part 1: Market Activity Tracking The events include two record kinds: print: a completed trade. volume-check: a request to calculate volume for a security. A print…