This is my solution to assignment 2's Pyramid Problem