Magic EdTech interview question

Xpath related, Java program, Selenium