Compare the number of pipes stored in grid pattern and skewed pattern, and print the larger of the two. This problem is quote easy to solve.