Largest Rectangle in a Stone Wall

Company: CodeSignal

Difficulty: medium