Count All Valid Pickup and Delivery Options - DSA Problem | Talentd