Cave of Origin Meloetta Puzzle Solution

Does anyone have a guide for the cave of origin puzzle? (The one where the entire row/column moves and not the 15 puzzle)

Thanks!

i also need help with this

type this in one search Meloetta Puzzle Guide for 1.2.5