Pergunta de entrevista da empresa Cognizant

Solve a puzzle based on number of triangles