On the Neural Network Solution of One-Dimensional Wave Problem