Google Interview Question

Drum hanging problem and coin flipping