Pregunta de entrevista de C3 AI

It is just normal coding question