Sum of perfect squares in java. Come up with the best algorithm you can; you&rsqu...