my attempt at solving leetcode 167: two sum ii input array is sorted [SOLVED]

Published --