What is the solution?

What to do anyone told me?

Is studentList No studentlist

At first you must declare a variable called studentlist
Or
You can create a function to get the details of the students store it in an array and then you can execute the given statement