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