Click the boxes in the right order. Press S to show the array and cheat.
Still working on it a lot, it'll probably be better eventually.