Morgan Stanley interview question

File management system in array