Solving service_lane

https://www.hackerrank.com/challenges/service-lane