Smallest Golden-Element Subchain

Company: CodeSignal

Difficulty: medium