Last year I got asked to add some functionality to a commercial app. The app.... was Implemented as cgi scripts written in awk. There's a backed c app often called, if you call with the wrong input it just segfaults.
"Hardest" to me has little to do with algorithms in the eyes of my recurrent nightmares about this abomination.