In the sentence, ”puzzled” is used as a verb in ”got puzzled,” and ”puzzle” is used as a noun to refer to the problem the students are solving. Thus, the word ”puzzle” is used as both a verb and a noun.