Onsite
Four Interviews with a Train Fare Calculator and Sliding Window Max
AmazonSoftware Engineer · Onsite · Aug 2026
Interview #1 — LP + DSA/OOP Leadership Principles behavioral interview, about 10–15 minutes. Then the design question: a train fare calculation system. There is one train line, G → U → H → K → I, and the fare between every two adjacent stations is 1 (for example, G to I costs 4). Implement calculateFare(start, stop) to compute the fare between two stations. Think about OOP/LLD design: where does…
Shared by a candidate · reported Aug 2026. Interview formats change; use it as a guide, not a script.