Capital One Interview Question

Maximum Sub-Array, K Closest points to origin