Turnstile hackerrank solution

Print it