Typescript Type For Array In Javascript Interview