Code Ninjas Matrix Range Query Mutable In Python