Company: Salesforce_24may
Difficulty: medium
Salesforce Collaborative Environment Problem Description In a Salesforce environment, there are n developers working on a collaborative task in a workspace, where they plan to transfer a debug log sequentially. Each developer has a unique ID in the range of 1 to n , inclusive. The developer with ID i will always transfer the debug log to developer logReceiver[i] . The transfer takes logReceiver[i] seconds. Developer 1 always starts with the debug log, and a developer always transfers the log to another developer. Determine which developer has the debug log after k seconds have passed. Function Description Complete the function logTransferReceiver in the editor below. logTransferReceiver has the following parameters: int logReceiver[n] : the i -th developer will transfer the debug log to the developer indicated in logReceiver[i] . int k : the duration (in seconds) for which the log is being transferred. Return int : the developer holding the debug log at time = k Examples Example 1: Inp