T-Mobile Interview Question

Solve x Scenario