Pregunta de entrevista de UST

Basic Coding questions from DSA in any language.