Infosys interview question

Questions are related to subarray and string mand bit manipulation