Applied Intuition interview question

Write a code for 3d demension