The position is described as a UX engineer and designer, and the applicant is expected to be experienced with JS and various frameworks for it.
The story seems to be more about a person who can't read and feels entitled to a job position they're not fit for. They were unable to display knowledge of basic for loops and conditionals and they were unable to convert a timecode string into seconds. Both of which are basically tests for "does this person even understand programming". Which they obviously don't because they wrote "OMG MATH" to a problem consisting only of the most basic logical concepts.
Maybe next time they should apply for a job that doesn't require programming knowledge.