Pergunta de entrevista da empresa State Street

Question on python language like on pandas dataframe ?