GlobalLogic interview question

time complexity, space complexity for java problem