SAP Interview Question

Find the duplicate number and return its index.