Print Kth boundary of a Matrix
Given a square matrix mat[][] and a positive integer K. The task is to print the Kth boundary of mat[][]. Examples: Input: mat[][] = {{1, 2, 3, 4, 5}, K = 1 {6, 7, 8, 9, 10} {11, 12, 13, 14, 15} {16, 17, 18, 19, 20} {21, 22, 23, 24, 25}}Output: 1 2 3 4 5 6 10 11 15 16 20 21 22 23 24 25 Explanation: