HackerEarth Taxi Please! problem solution - TheCScience