Count Complete Highway Journeys from Toll Logs
Company: Onepay
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Technical Screen
Overview: Count completed highway journeys from unsorted entry, main-road, and exit toll records grouped by vehicle and direction. Handle replacement entries, mismatched directions, incomplete or malformed sequences, deterministic tie ordering, duplicate delivery, and bounded-state streaming follow-ups.