Infosys interview question

Linear and Non-linear Data structure