Iterate Through Json Array Typescript Interview