Pergunta de entrevista da empresa CAPIOT

Some logical questions in tr before which I have cleared a wrutten test and a coding test.