I put it in, and it comes out backwards. So then I reverse the order, and I get a reference instead. Then I throw recursion at it, because I'm never sure when to use recursion anyway.
After that, I paste error messages into search engines until I see the same code three times. Then I delete my code and replace it with the code I found, then it finally runs.
I've made many programs this way, although, they never do what I originally intended. I figure they'll be popular since humans are gluttons for punishment.