TCS Interview Question

Two peint star patter in python