Conundrum Interview Question

TypeScript generics.