JWP (JW Player) interview question

(On-site) Warmup application of data structures problem