Pregunta de entrevista de Hadrian

a 3d mathematics question i had to solve