One basic technique while solving problems I learnt in elementary school is to check whether a possible solution actually works. Would be great if ChatGPT did the same (I got it to find the right answer by saying this does not actually work fo