Zopper Interview Question

Two consecutive element with sum k