Sberbank interview question

How traceroute command is actually works?