Given a sorted integer array, two integers k and x, return the k closest integers to x in the array. The result should be sorted in ascending order. An element a is considered closer to x than an element b if either |a - x| < |b - x| or |a - x| == |b - x| and a < b.
Click Run to execute sample tests.