Can some one explain how this function recursively picks out the smallest integer?

Much appreciated, thank you!