Pregunta de entrevista de Synoriq

In Technical interview there is coding question to solve.