Solved Project Euler #2 on HackerRank