NBA Interview Question

Solving a hackerrack using matrix projections