Pregunta de entrevista de Capital One

Maximum Sub-Array, K Closest points to origin