Amazon interview question

Allocate Platform problem according to time