SAP interview question

Find the duplicate number and return its index.