Extend, Inc. interview question

Dom traversal and manipulation. One should know Javascript