Question d’entretien chez HM Revenue and Customs

reverse a list using java. explain the complexity. write tests