Question d’entretien chez Oracle

They asked to code one program to print pattern. then asked basic questions on object oriented programming and data structure.