Commented main methods and used ArrayUtils instead of custom reverseArray method