I am working as a Software Developer for the last 10 months. I have a colleague working on the same technology framework for 6 months.
She doesn't develop the logic and algorithms on her own, and instead relies on her supervisor or me. The supervisor has told her many times to work by herself, but she rarely follows his advice. She struggles with basic software concepts even after working for 6 months.
To avoid being scolded by her supervisor, she constantly asks me to help her. Her queries are sometimes too confusing or miss the basics which irritate me. She interrupts me every 10-15 minutes to solve problems in her code, which damages my productivity for the entire day. She also doesn't pay attention to or remember what I explain, and keeps asking me to explain the same thing repeatedly.
I tried talking to the CTO (not her supervisor, because the CTO is a lot more calm). The CTO suggested me to continue helping her, but inform him if this takes more than 30 minutes of my time. However, my issue is not that this takes 30 minutes, but the continuous disturbances every 10 minutes.
My question is, what can be done to handle a coworker who constantly asks me for help with her work tasks?