Pregunta de entrevista de CloudKaptan

JAVA basics , OOOPS Coding question from array and star pattern