紆余曲折うよきょくせつ
uyokyokusetsuo hete

Expression

1. after many twists and turns; after much trouble

あの問題もんだい、紆余うよ曲折きょくせつ解決かいけつした。
ano mondaimo uyokyokusetsuo hete kaiketsu shita.
There were a lot of twists and turns to the story, but we finally solved the problem.