Input 9 8 ))(()))) 7 ()(())) 9 ))))(())( 2 )( 8 ()()()(( 2 () 7 ((()()( 4 )))( 8 )((((((( Expected Output 4 0 3 1 4 1 0 2 4 0 1 0 3 1 1 2 0 8 Stress testing completedUpdate Logs
Note: You can also use F5 to update the logs. This would also retain cursor position while scrolling.