紆余曲折 うよきょくせつ
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.