As a #CodeNewbie, I usually don't care how I solved a coding challenge as long as I am getting the result (maybe I do care a bit about elegance...
For further actions, you may consider blocking this person and/or reporting abuse
The other side of this coin is that the dataset may remain small, but you invoke that bit of code hundreds or thousands or millions of times a day. It can really add up over time.