Domanda di colloquio di Nvest Solution

Basic Logical Question from Geeksforgeeks