When you get stuck, push yourself to solve the problem for 15 more minutes.
During that 15 minutes, document everything you do, keeping in mind that someone else will need those details if they’re going to help you.
After that time, if you’re still stuck, you must ask for help.