Determining the Engineer on the Train

Company: Ion Group - Hackerrank_17thjuly

Difficulty: medium