But how does the company recruiting you know that you are actually doing the work, and not having someone else do it.
The purpose of data structures and algorithms questions is to demonstrate some abstract thinking and coding ability in a short space of time - if you can do that you can probably code in whatever language / framework they use.
Brainteaser questions on the other hand, those are worthless.