Add two sum to third

Given a sorted array, write a program to decide if two elements sum up
to a third