Regarding input

how to take input in this ques ? Given a head pointer i know how to solve this question but here its very confusing on how to take input from user

Hello @manuu_98,

I have a code for create function:

But it is written in java.
Java is very much similar to C++ in terms of syntax.
So, you won’t find any difficulty in understanding the logic.

Let me know if you don’t understand something.