Providence Interview Question

Pressure situation and basic coding question