Surya Software Interview Question

Write a program to find the difference between the closest integers in an array.