Infosys Interview Question

How generics works with Map and list?