Pergunta de entrevista da empresa Tatvasoft

Coding Pattern Question - Easy to Moderate level