ABC Interview Question

about data structure