Philips interview question

Program in implementing a data structure in java