Pregunta de entrevista de Tatvasoft

Coding Pattern Question - Easy to Moderate level