Problem
Read a word and print its growing prefixes — first the first character, then the first two, and so on up to the whole word. Use nested loops and charAt.
charAt
For the input cat:
cat
c ca cat
Press «Submit» to run your code against the task's test cases — that is what sets your score. «AI review» is an optional second opinion: it reads your code — logic and style, not just the output — and suggests the next step without handing over the answer. It never changes your score.