Pregunta de entrevista de SAP

leetcode medium two pointer question