Pergunta de entrevista da empresa Luminus Management

write code of a function; how to know whether a regression model is a good one; how to get the distance between two point in a higher dimension;