Did you finish the homework assigned by the teacher last week? (The teacher assigned the homework last week.)
지난 주에 선생님이 내 주신 숙제를 다 끝냈어요?
Did you finish the homework last week assigned by the teacher? (You finished the homework last week.)
선생님이 내 주신 숙제를 지난 주에 다 끝냈어요?