Text this: Solution of certain problem with nonlocal boundary condition for one-dimensional wave equation