In school, we were always asked to show our solutions. It was not enough to just say what we thought the answer was, we had to give the details for how we arrived at the answer. Can you explain how you came up with O(n^2)?
Practice only makes habit, only perfect practice makes perfect.
Practice mindfully by doing the right things and doing things right.— Junilu