Pregunta de entrevista de Anonymous

write a js code for a problem statement