contestada

He stayed up late making the practice assignment undoubtedly he was
just another sleep-deprived teacher.
O assignment; undoubtedly,
O assignment; Undoubtedly
O assignment. undoubtedly
No semicolon(s) needed. It's fine the way it is.