Pergunta de entrevista da empresa VisNext Software Solutions

The farm problem, the longest common ending, and Rearrange an array so that arr[i] becomes arr[arr[i]] with O(1)