SigTuple Interview Question

basic problem solving, data structures