Apple Interview Question

question about 3d computation for distance between two points in a 3d space