Frage im Vorstellungsgespräch bei Capital One

Case interview consisted of explaining a simple JavaScript function