Solved OddManOut problem to detect non duplicate integer in an array