Belittle ? Does that mean one can only struggle with programming problems ? I would differ as one is always required to come up with steps to solve a problem in Maths and other fields and it has nothing to do with programming.
I looked at the OP and the solution they had was nothing close to correct solution so I suggested this could as well be done on paper, say considering an list of blocks and trying to reverse them after which you can now think of how to write the code.