Hitachi Vantara Interview Question

Questions were based on recursion.