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