While you understood the pattern correctly, you added more than 10 numbers. You should add exactly 10 numbers. Let's try again: Example input: {1,2,2,3,3,3,4,4,4,4,5,5,5,5,5} Example output: