Update two sum

two versions of solutions