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