MAQ Software Interview Question

Two DSA based questions on map and array.