Pergunta de entrevista da empresa SAP

Gfg puzzles were asked. Mainly logical