Make leftSum and rightSum functions with one argument