Are you ready to solve the challenge and get closer to your new job at ING Tech?! We are looking for #remote experienced Java Development Engineer based in Cluj to develop our banking technologies and this is the fastest way to show us your skills.
You have an array of integers whose elements have both a negative and positive value. Write a function oddOneOut for that situation in which you have one integer that is either only negative or only positive.
[3, 7, -3, -9, 9] -> 7
(the only-positive or only-negative integer may appear more than one)
Write the code in https://repl.it/languages/java10; when you’re done click Save, then paste the URL in the answer section from below.