Company: ethos_20sep
Difficulty: medium
Pod Failure Problem Description A deployment automation team is analyzing pod failures. There are n logs, where the i -th log is denoted by logs[i] and contains two integers. Initially, no pod is active. The log types are: [1, k] : an unused pod was activated with a load of k requests. [2, k] : a load of k requests was added to every active pod. [3, 0] : one pod with the least load failed. The failed pod is no longer active. For each log of type 3, find the load of the failed pod. Complete the function findFailedPods(logs) , which returns the loads of the failed pods, in the order in which the type-3 logs appear. Input Format Read from standard input. The first line contains an integer n , the number of logs. The second line contains the integer 2 , the number of values in each log. Each of the next n lines contains two space-separated integers logs[i][0] and logs[i][1] , the type and the value of the i -th log. Output Format Print the load of each failed pod on its own line, in the or