SGS Interview Question

regarding education regarding data structure