Krafton interview question

Implement a stack data strucutre