Capgemini Engineering interview question

Simple datastructure logics?