Capital One interview question

Maximum Sub-Array, K Closest points to origin