Mean square displacement of a Brownian particle with traps. The one-dimensional case