DXC Technology interview question

Write programs for Data structure