Publicis Sapient Interview Question

Coding the Manhattan and Euclidean distances between two n dimensional points