On 1 D Schrödinger problems allowing polynomial solutions