HackerRank Day 11: 2D Arrays problem solution - TheCScience