Adjust Interview Question

Implement a javascript object using arrays with time complexity O(n)