SigTuple interview question

basic problem solving, data structures