Different methods to take input for two dimensional vectors
Given a 2D matrix, prints the elements of the matrix in spiral order