I have taken both ArrayList and LinkedList and compared their time consumed in get function, set function, Add Or Insert function and remove function. Is this a right way to solve this question?? Conditions are not getting fulfilled in this solution.