HashedIn by Deloitte interview question

1.Write MongoDB Queries for Sign in Table. 2. Write Code for linkedlist (cycle detaction) 3.Rotate Binary search tree. 4.write syntax of joins in database. 5.Max sum of 2 elements is equal to sum of all elements in the array.