A singular one-dimensional bound state problem and its degeneracies