Infosys interview question

data structure - sorting about projects