Company: Coupa
Difficulty: medium
Router Busy Light Problem Description The network router stores information in the queue of size N . The log of the packet flow in the queue is maintained in the form of a string. The router logs the character E when a packet joins the queue. The router logs the character L when a packet leaves the queue. A red light lights up when a log entry exceeds the size of the queue ( N ). Given the log of a string, calculate the number of times the "router busy" light lit up. Function Description In the provided code snippet, implement the provided routerBusy(...) method using the variables to print a single integer representing the number of times the "router busy" light will blink. You can write your code in the space below the phrase "WRITE YOUR LOGIC HERE". There will be multiple test cases running, so the Input and Output should match exactly as provided. The base Output variable result is set to...