Exercise: Pascal triangle functions