you give integer array num a number x lonely appear adjacent number ie x 1 x 1 appear arrayreturn lonely number num you return answer order Example 1input num 10658output 108explanation 10 lonely number appear exactly 9 11 appear num 8 lonely number appear exactly 7 9 appear num 5 lonely number 6 appear num vice versaHence lonely number num 10 8note 8 10 returnedExample 2input num 1353output 15explanation 1 lonely number appear exactly 0 2 appear num 5 lonely number appear exactly 4 6 appear num 3 lonely number appear twicehence lonely number num 1 5note 5 1 return Constraints1 numslength 1050 numsi 106