Solve ぐるぐるツアー

1問目とアイデアがだだ被りです。sorry Solving code challenges on HackerRank is one of the best ways to prepare for programming interviews.