Daily coding problem 1

Given a list of numbers, return whether any two sums to k.

For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.

Bonus: Can you do this in one pass?

Note: This is not official/best/preferred solution or anything like that. This is just how I solved it. If you are looking for challanges or solutions to Daily Coding Problems, please visit DailyCodingProblem.com