On the Optimal Stopping Time Problem for Degenerate Diffusions