Nok Nok Labs Interview Question

I was given a programming problem to do on my own time, which involved writing a program to count words in html documents.