How Many Flips?

Company: Mckinsey data scientist IITB

Difficulty: medium