How to use recursive approach?

i dont understand how to employ the recurcive approach for it