Guy Carpenter interview question

Some graph lit code questions