PhonePe Interview Question

Problem Solving - Uber Driver Puzzle