The coin problem

Company: HiLabs_SDE

Difficulty: medium