lol, this answer is not correct, nor did it explain the runtime complexity. i use chatgpt for simple shit, and it's nice (when it works). but it's not there yet. sorry homie, looks like you'll still have to hire people for hard problems.