Conundrum interview question

TypeScript generics.