Pregunta de entrevista de SAP

a Java Code Review and a medium leetcode question