Hitachi Vantara interview question

Questions were based on recursion.