Providence interview question

Pressure situation and basic coding question