Time and Space Complexity of Data Structure