Google interview question

one coding question on consectuive numbers in array