Sorry, I don't really understand what you need. I think you should try writing it yourself, see where you can get to, and I'll help debug or give you hints. I gave you more than enough to work with.
BTW, quick tip. When I approach any problem in programming, the first thing I do is try and break it down into smaller chunks and puzzle pieces. At first it can seem crazy and daunting, but if you break it down, its really just putting the pieces together.
Like ok I need an input for the user -> I can use HTML input element.
I need questions -> I can create a factory for each question
I need length of each question -> I can write a function to return the question length
See what I mean? I think you got this, just gotta start coding and give it a try