What's the value returned by score.length? How many elements do the nested arrays have?
And finally, what's the termination condition of the inner loop?
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.