Virtusa Interview Question

Data structures and arrays from hacker rank