Next Insurance interview question

technical questions: some basic java questions: why to use equals vs == second part was an algorithm problem