Virtusa interview question

data structure and profile analysis