Java New Object Array Typescript Interview 2023