Voltorb Flip is a minigame in Pokemon Heart Gold and Soul Silver. The above helper can serve as a guide to help you "cheat" in this game.
Start by simply filling the numbers at the end of each of the columns and rows, then clicking the blue "Solve" button.
Please note that Voltorb Flip is ultimately game of chance, and therefore this solver cannot be perfect. However, it does provide you with the best possible path to the solution.