Pregunta de entrevista de The Trade Desk

matrix manipulation, leetcode mediums (near hard level)