Https://ide.codingblocks.com/#/s/29781

https://ide.codingblocks.com/#/s/29781
the question is
https://hack.codingblocks.com/contests/c/509/209
how can i solve the , [ problem

https://ide.codingblocks.com/#/s/29799

save and output at the end.