Ubisoft interview question

heap sort and graph coding question