Statistics for Rothe–Legendre pseudospectral method for a semilinear pseudoparabolic equation with nonclassical boundary condition