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

https://ide.codingblocks.com/#/s/15394
this is code for valid invalid sequence problem.all test cases are not passing.kindly help.