There's no single "solution" — the novel works on multiple levels:
She learns the power to go home was within her all along (the Silver Shoes). The journey builds courage, friendship, and self-reliance.
Oz = Washington; Yellow Brick Road = gold standard; Scarecrow = farmers; Tin Man = industrial workers; Lion = William Jennings Bryan. The "solution" is collective political action.
Oz exists because Dorothy and friends believe in it. Imagination creates better worlds.
The growth happens en route. The return home is almost incidental.
Interpretation is open — Baum called it a "modernized fairy tale" meant to entertain, not preach.