For a perfectly elastic collision, speed of approach = speed of separation. The speed of approach is u1+u2 as the spheres are moving towards each other so their velocities relative to each other are the sum of the velocities. After the collision the spheres move in the same direction. We can assume v2>v1 as otherwise the sphere would immediately collide again. Therefore the velocity of the second sphere relative to the first is v2-v1 (as the first sphere is moving in the same direction). So D is the correct answer.