Searches the element x in mat [ ] [ ] . If the element is found , then prints its position and returns true , otherwise prints " not ▁ found " and returns false
function search ( mat , n , x ) { if ( n == 0 ) return - 1 ;