Toptal interview question

Data Structures on arrays and graphs