ProModel interview question

how would you sole this problem