Domanda di colloquio di OCTO Technology

resolve this psuedo code with recursive way.