DevRev interview question

1 bubble sort 2 stack implementation 3 memory management