Pregunta de entrevista de AQR Capital Management

Algorithm questions as me not having any algorithms background.