Added solution for sum and multiply