pascal triangle solution for HackerRank.com

functional languages challenge section