Freshers.com interview question

about data structures and pseudo alogithms