A Suffix Queries Problem

Company: Corridor Platforms

Difficulty: medium