Amazon Interview Question

Allocate Platform problem according to time