Thriver interview question

A few graph and set/array algorithm questions