Resource Efficient Boolean Function Solver on Quantum Computer