Find a group G with subgroups A and B such that AB is not a subgroup.

I think I may be overthinking this, let G be the set of integers, then let A be {1} and B = {0}, then both A and B are subgroup, but there would be no inverse for 0 in the set AB.

Is this right?

Thank you.