Pergunta de entrevista da empresa Capital One

Case interview consisted of explaining a simple JavaScript function