GATE Computer ScienceWhich data structure works on the Last In First Out principle?ALinked listBStackCQueueDTreeCorrect answer: B. StackIn a stack the last item pushed is the first one popped.ShareReport an Error