Moody's interview question

Questions on data structures