KAYAK Interview Question

just basic question in data structure, database and statistic