The following is the source code for post >>>/math/562
Gaining this sort of skill in problem solving is I'd say possible with an incredible amount of practice. But it's nothing to beat oneself up over, there's much more to math than just being incredibly skilled in problem solving.