Check if each row and column of N*N Grid contains all numbers from 1 to N
Given a square matrix arr[][] of size N * N, the task is to check whether each row and column of a matrix contains all the numbers from 1 to N or not. Examples: Input: arr[][] = { {1, 2, 3}, {3, 1, 2}, {2, 3, 1} }Output: trueExplanation: Every row and column contains number 1 to N, i.e 1 to 3 Input: