I am trying to find a solution to a problem in the best possible way. My code has 2 restrictions:

1) It supports only 50 search parameters.
2) It support (A OR B) AND C but not (A AND B) OR C.
...