Typescript Enum To Value Array Interview Question