Minimize L1 Distance with k Cluster Centers in Array | Atlassian Interview Question