SailPoint Technologies interview question

Core Java and puzzles.