Pattern triange

Sir, Explain how to code this?