Plum interview question

To write two programs in DS and algorithm round.