WorldQuant interview question

basic programming and math