Problem 4052 · Easy
Rotate each row left by its shift, then rotate each column up by its shift using the already shifted rows.
Open the interactive visualisation