I was asked to explain the functionality of an undocumented piece of code, which was a recursive function.
Sigiloso
I explained that I did not initially know what the code was doing. I then, while describing my thought process aloud, took logical steps towards understanding the code by trying different test inputs and tracking the values of each variable at each step until the answer became clear.