Too Long; Didn't Read
Getting stuck in a programming problem is a very common thing. The best way to approach the problem is first to understand it thoroughly. Take a break, calm yourselves down, clear the clutter in your mind and start over by following the next steps to shift from "Try harder" mode to "Moment of Enlightenment" faster and before going crazy about the problem. The most efficient way to reduce uncertainty depends on what you already know. Ask others for help in a work environment, someone else has come across the same problem and can give you useful tips.