MELBOURNE—The classic tennis conundrum is this: You need confidence to win, but you need to win to have confidence. How, you might wonder, do either of those things ever happen? When it comes to beating the ATP’s Big 3, Stan Wawrinka has been wrestling with something like this question for most of his career.