Google interview question

To implement addAll(Container) method similar to addAll() of any container class in Java. Required Time complexity : O(1)