Pergunta de entrevista da empresa Salesforce

1. cut the ropes problem 2. how many elements are not in their correct location in an unsorted array