Fancy Tower Problem

Company: Myntra

Difficulty: medium