Deloitte interview question

Linked List, Queue , Sum of Numbers in Array