solved 118 euler and worked on some hacker rank