An Ironclad Workflow Designer review queue contains uniquely identified cards. Implement a counter that reports how many cards remain as cards are drawn, returned, or queried.
Write a function that processes an initial collection of card IDs and an ordered list of operations. A draw operation removes a card, a return operation adds a previously drawn card back, and a display operation records the current number of remaining cards.
Implement remaining_card_counts(card_ids, operations).
card_ids is a list of unique strings representing the cards initially in the queue.operations is a list of two-element lists. Each operation is either ["draw", card_id], ["return", card_id], or ["display", null].display operation, in order.draw targets a currently remaining card, and every return targets a card that is currently absent.def remaining_card_counts(card_ids, operations):