Pregunta de entrevista de Algoworks

puzzles from gfg and easy technical question