EY Interview Question

Java Data structures