@shashin Can you please help?
This is actually a widely studied problem. I can't explain it to you in simple words - but you can start here on stackexchange where it has been discussed https://cs.stackexchange.com/questions/19151/is-the-complement-of-ww-context-free