SAP Interview Question

They asked me how to implement addAll and getAII on an array at runtime in o1.