EY Interview Question

basic data structure questions