how to filter view having three group with one or and two and group?
For ease of use I would suggest looking at Views Raw SQL. While Views is a powerful query builder, it sometimes makes assumptions and in a general sense is designed to solve 80% of general types of listings and queries -- when implementing advanced logic, it can fail short.

Another option is to use the Views API Hooks (hook_views_query_alter) and alter the query using a small custom drupal module.