visiting cities hackerrank solution github