For the first three iterations of the do while loop, the default case of the switch statement executes (x changes from -5 to -3, -1, 1). After the first three iterations x is 1.
In the fourth iteration of the loop, case 1 is executed which PRINTS 1 and changes x to 4. In the fifth iteration, case 4 is executed which PRINTS 4 and changes x to 3.
In the sixth iteration, case 3 is executed which PRINTS 3 and changes success to 1.
In the seventh iteration, case 3 is executed again which PRINTS 3 and changes success to 2.
At this point, success is 2 and x is 3. So, the while condition is false and the loop terminates.
Hence, the output is 1433.