Infosys Interview Question

Questions are related to subarray and string mand bit manipulation