CapTech Interview Question

pretty simple string parsing coding problems