Akamai Interview Question

Stack simple problem