Indycium interview question

simple pattern program in python