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