Company: Hudson River Trading(HRT)_4th june_on campus _iit guwahti
Difficulty: medium
Your task is to develop a library book circulation tracker. You are given a sequence of operations that represent activities in a library. Each operation is one of three types: acquisition , checkout , or reclassify . Operations are provided in the following format: [ "acquisition" , "<book category>" , "<quantity>" , "<price>" ] – the library acquires <quantity> books of <book category> , each valued at <price> for insurance purposes. [ "checkout" , "<book category>" , "<quantity>" ] – patrons borrow <quantity> books of <book category> . If books of the specified category have different insurance values, the least valuable ones should be checked out first. It is guaranteed that the library will always have enough books to fulfill all checkout requests. [ "reclassify" , "<book category>" , "<quantity>" , "<original price> , "<new price> ] – the library reclassifies <quantity> books of <book cat