Amazon Interview Question

The length from one coordinate to origin