NeoSOFT interview question

Star pattern programs , find second element of array and other basic oop