Pergunta de entrevista da empresa Luxoft

How to find xpath of an element by using its previous element