Google Interview Question

one coding question on consectuive numbers in array