GTS interview question

Basic coding and data structures questions