Block interview question

Solve a code problem live