Vestel interview question

Simple algorithm problems related to data structure