Domanda di colloquio di Asurion

javascript and typescript problem that is average in difficulty