HashedIn by Deloitte interview question

5 questions from Time and Space complexity of an algorithm(program)