Persistent Systems Interview Question

Q. write a c program for k integer diff