how to solve JACKJACK from Tessellathon

How is solve this question

From what i have seen people are applying but how?