Question d’entretien chez DXC Technology

Solve the code as per the given inputs and outputs.