Pregunta de entrevista de Capital Numbers

programming questions from javascript & angular 6+