Iterating Through Array In Typescript Interview 2023