The whole thing hit me in two minutes, and I did one line after another and got the whole thing done in 20 minutes."
It suddenly hit me that the whole project could be finished in just two minutes, so I worked line by line and completed it in 20 minutes.