UST interview question

given some html code and asked to write some xpaths and programs