Apple Interview Question

Typical data structures, parsing, flow control, corner case handling