Challenge Information

Title : Add up to make equal
Difficulty : Medium
Solutions : 11
Maximum Score : 100
Completed by You: No
Description :

There is a list of numbers and a number k given. You have to return whether any two numbers from the list add up to make it equal to k.

Write a function solve that have the following parameter(s):
1.) arr = an array of integer
2.) k = integer

Example
Input:
[10, 15, 3, 7]
k = 17
Output:
10, 7

Explanation
After adding integers 7 and 10 from an array, it is equal to the value of k that is 17.

Example
Input:
[9, 13, 2, 20, 5, 25]
k = 33
Output:
13, 20

Explanation
After adding integers 13 and 20 from an array, it is equal to the value of k that is 33.

Constraints

i] will be greater than or equal to 0 and less than or equal to 1000.

Judocode