Pergunta de entrevista da empresa IBNQ

The most boring stuff from Leetcode, all about proper iteration of an array/matrix. Solutions are obvious but take some effort to implement.