Go and watch the Hard-Work of StoryLine of EndGame.
it was not easy, this is 1 out of 14,000,605 possibilities that win.
SO we have to think the toughest way of winning that not only kill Thanos but bring all the vanished people and universe. This is Must watch movie even if someone spoiled it .