Samsara interview question

Some Matrix operations moving values around according to some rules.