A User in Multiple groups that have different permissions which one wins

If a collection has 2 groups, allowed access
GroupOne Can only view
GroupTwo Can Edit
If I am in both groups what access do I get
(Technical question are groups cumulative or restrictive?)