Nagarro interview question

how to traverse table in selenium