See the code attached...question is written there

https://ide.codingblocks.com/s/365584

why this is not working ???
what is going wrong in my code

Hey @hg11110000
if (check[i] != ‘0’ and check[i] != ‘1’) return false;

Here and will come instead of or