Company: optiver_14oct
Difficulty: medium
Squirrel Research Problem Description Researches are studying the behavior of squirrels in a forest, where they compete to hide and collect nuts in hidden locations. You are tasked with implementing a tracker that can simulate this behavior. Your system is initialized with a list of locations and their capacities, and should support the following actions: Register a nut has been hid by a squirrel in a location. Register how nuts are retrieved by a squirrel from a location. Complete the functions described below in the SquirrelResearch class. Keep in mind that: If any constraint is violated when performing an operation, the operation must fail. If a constraint is said to be 'guaranteed', you may assume it is never violated. Action functions include a timestamp indicating when such action has taken place. They are guaranteed to be globally ever increasing. Timestamps are represented as number of seconds since the Unix Epoch (Jan 1, 1970 UTC), using floating-point values valid to the mill