Bloomberg interview question

Some basic questions about data structures, some mathematics