Get Maximum Throughput Hackerrank Solution