Implemented the code for the Sum Square Difference problem