REVE Systems interview question

Hard data structure and algorithm questions