Pergunta de entrevista da empresa Capital One

Rearranging blocks in a matrix was one question I remember.