Should i understand the non-STL version too?

In the interviews should i write code given in this video or the code in the gfg site?

@devanshkapur they just used a struct instead of class.