Credit Karma Interview Question

How to navigate a 3D matrix