Project Euler Hackerrank Solutions Sql