check the code cannot solve the pattern.
It’s been a month still I can’t make logic for simple code give some advice on how to improve the logic building.
code:- https://ide.codingblocks.com/s/452918
question:-https://online.codingblocks.com/app/player/189104/content/180066/4778/code-challenge