Synergita interview question

They asked me to write the code for a pattern program with hindrance