What is the complexity of the code?

How do you avoid code complexity?