Input: arr[][] = {{1, 3, 1},
{2, 2, 3},
{2, 1, 2}}
Output: 2
Explanation: First and third row forms a palindrome i.e 1 3 1 and 2 1 2.
Therefore, count of palindromic rows is 2.
Input: arr[][] = {{2, 2, 3, 2},
{1, 3, 3, 1},
{4, 2, 2, 4},
{5, 6, 6, 5}}
Output: 3