NTT DATA Interview Question

Come implementeresti uno stack in java