Pattern OXOX question-spiral pattern

whats wrong in my code?

Hi @sktg99, in line no. 23, 28, 44, 50 instead of using “<” use “<=”