Added pyramid solution in c