I solved the problem using Trie. It looks like my approach is correct but there is one test case failing.
Here is the link of my submission.
Tree Node structure is like this
struct TrieNode *children; bool acc; bool nAcc; bool leaf;
Here acc flag store whether that node comes under accessible category or not. Same is for nAcc flag for blocked websites. I think issue maybe in no solution condition. My code consider following case as no solution
Any help is much appreciated.