NBA interview question

Solving a hackerrack using matrix projections