I imagine that the task does not validate because I have a logic error but I do not understand which one. besides I do not understand pk I needed to use Collections.reverse to have the expected return.