We called the compare() method directly in main() method. Should we not have created an object first, through "Solution solution = new Solution();" and used the compare method like this: solution.compare(3); solution.compare(6); solution.compare(5);