Pregunta de entrevista de Shopee

Create 2 function for a 2dimentional array, first: find duplicate number inside the array, second: create a function to swap the index