HackerRank Dot and Cross in python problem solution - TheCScience