Pregunta de entrevista de UKG

How to solve some basic coding problems.