Answer the question to set the number of levels, press Enter and the code does the rest. This uses a type of logic called a "recursive" logic where a custom block calls itself. It enables you to draw very complicated patterns with not much code.
The code has been adapted from a Python programme which you can find (with an explanation of the Hilbert curve) at https://www.geeksforgeeks.org/python/python-hilbert-curve-using-turtle/