Domanda di colloquio di Infosys

Easy leet code question on two pointer and arrays