彼(かの)女(じょ) kanojoは wa次(つぎ) tsugiに ni何(なに) naniを oしたら shitara良(よ)い() yoiの noか ka途(と)方(ほう)に()暮(く)れ()ま()し()た() tohounikuremashita。 She was at a loss for what to do next. Literal She [topic-は] next [at-に] what did [if-ら] good [question-のか] at-a-loss. 途方に暮れる means 'to be at a loss, be completely stumped.' 次に何をしたらいいのか is an embedded question: 'what should I do next.' emotionsembedded questionembedded wh-question
彼(かの)女(じょ) kanojoは wa次(つぎ) tsugiに ni何(なに) naniを oしたら shitara良(よ)い() yoiの noか ka途(と)方(ほう)に()暮(く)れ()ま()し()た() tohounikuremashita。 She was at a loss for what to do next. Literal She [topic-は] next [at-に] what did [if-ら] good [question-のか] at-a-loss. 途方に暮れる means 'to be at a loss, be completely stumped.' 次に何をしたらいいのか is an embedded question: 'what should I do next.' emotionsembedded questionembedded wh-question