MapleLabs interview question

Basic questions on data structures