Pregunta de entrevista de ABC

DSA, OOPS, Basic coding question in technical