Can someone help me where I'm going wrong
\nclass Solution:\n    def maxTrailingZeros(self, grid: List[List[int]]) -> int:\n        m=len(grid[0])\n        n=len(grid)\n        def checkZeros(num):\n   
```\nclass Solution:\n    def maxTrailingZeros(self, grid: List[List[int]]) -> int:\n        m=len(grid[0])\n        n=len(grid)\n        def checkZeros(num):\n            count=0\n            while num%10 ==0 and num!=0:\n                count+=1\n                num//=10\n            return count\n        preRow=[[1 for i in range(len(grid[0]))] for j in range(n)]\n        preCol=[[1 for i in range(len(grid[0]))] for j in range(n)]\n        totalRow=[1 for i in range(n)]\n        totalCol=[1 for i in range(m)]\n        for i in range(n):\n            pro=1\n            for j in range(m):\n                pro*=grid[i][j]\n                preRow[i][j]=pro\n            totalRow[i]=pro\n        for i in range(m):\n            pro=1\n            for j in range(n):\n                pro*=grid[j][i]\n                preCol[j][i]=pro\n            totalCol[i]=pro\n        maxx=0\n        for i in range(m):\n            pro=1\n            for j in range(n):\n                maxx=max(maxx,checkZeros(pro*preRow[j][i]))\n                pro*=grid[j][i]\n                maxx=max(maxx,checkZeros(pro*(totalRow[j]//preRow[j][i])))\n        for i in range(n):\n            pro=1\n            for j in range(m):\n                maxx=max(maxx,checkZeros(pro*preCol[i][j]))\n                pro*=grid[i][j]\n                maxx=max(maxx,checkZeros(pro*(totalCol[j]//preCol[i][j])))\n        return maxx\n   \n```\nwhy is this code failing for this test case\n[[534,575,625,84,20,999,35],[208,318,96,380,819,102,669]]
[]