Let the balls meet t sec after the second ball is thrown.
So the 1st ball will then complete (t+1) sec of its journey.
The imitial velocity of the 1st ball is zero .So it will fall a height
The 2nd ball's initial velocity being
So the ball will meet
During this time it will fall