SAP Interview Question

Gfg puzzles were asked. Mainly logical