TCS interview question

Two peint star patter in python