Compilation error dissapearred if we remove reversed() method Here is the code snippet with a compilation error: