Fixed bug in sumArray linear-time solution