Hadrian Interview Question

a 3d mathematics question i had to solve