Optym interview question

Two questions are about spanning tree.