how to solve truth table - Search