Numpy Array Update Value Mysql Interview