Booking.com interview question

Given an array of NSNumbers output a delta encoding for the sequence