How does leetcode parse its input?

Hey guys,
I am very curious about this. How does leetcode parse its input. For example, look at the picture below:
image

How does Leetcode take in a string "UndergroundSystem" as input and then initialize a class out of it? Same query for methods. How do you take in a string and then make a method of it?

Thanks,
Pierre

Comments (2)