iCRA interview question

pattern printing some logical questions..