The washing machine has a hose. Water can be poured from a 1-gallon jug into the drainpipe. Clear debris from the pipe with a plumbing snake if it still overflows. As far as the snake will go, feed it into the pipe.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.