Think about what each line of code does and then describe that in writing. You don't have to describe every single line of code though. For example, in this algorithm the code in the inner loop could be described like this :
swap values
increment counter
That's all - that is the pseudo code for those four lines inside the inner set of braces. Beyond that, you have two loops, an initialization, and a comparison to describe.