Implement a function retry(fn, retries, data, successCallback, errorCallback) which retries another function fn up until retries times in case errorCallback of a function fn was triggered.
Function fn has the following signature fn(data, successCallback, errorCallback).