Pregunta de entrevista de Liberty Lending

Python question, largely about pandas, numpy, and writing functions.