I saw this problem some CTO posted about solving that on chatGPT, the question looked cool but the answer was wrong, so I gave it a try, here is what I came up with, but this is really simple, only taking account one row, will be doing the next part soon