Pregunta de entrevista de Nvest Solution

Basic Logical Question from Geeksforgeeks