Pergunta de entrevista da empresa Algoworks

puzzles from gfg and easy technical question