educative.io

Educative

What to store in the ans?

Do we have to store all the numbers in the sequence or only the last one?