Find Last Affected System

Asked at Wells Fargo · Coding Questions · Difficulty: Medium

A company Amania has to store a critical key in a secure format. To ensure that the key is not leaked easily, they break the key into pieces and store it on `N` systems that are connected in the form of a ring. All systems have a unique ID numbered from `0` to `N-1`.

Loading the problem…