Input 2 8 7 4 4 1 1 6 0 0 7 3 1 5 5 3 0 1 Expected Output 2 2 1 2 2 0 Stress testing completed
Note: You can also use F5 to update the logs. This would also retain cursor position while scrolling.