I've been trying to solve the puzzles on HackerRank.com lately. This post is just to solve the problem in Arrays section of Hacker Rank I feel better to solve the problems though. It certainly improves some area in programming language. As I'm a C# developer the problem is solved using C# as programming language. Question: https://www.hackerrank.com/challenges/2d-array And the solution is