Pergunta de entrevista da empresa Expedia Group

it examines two algorithm problems. The first one is to set both row and column in which the zero locate to be zero in a 2D matrix. The second one is to find the number of sub array in a array that can be divided by certain number.