HCLTech interview question

Array representation in Java