java easy solution for beginner
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public boolean isFascinating(int n) {\n      int a = 2 * n;\n      int b = 3 * n;\n      String s ="";\n      s=s+a+b+n;\n      long arr[] = new long[10];\n      for(int i = 0;i<s.length();i++){\n        arr[s.charAt(i)-\'0\']++;\n\n      }\n      int count = 0;\n      if(arr[0] >= 1){\n        return false;\n      }\n      for(int i =1;i<arr.length;i++){\n        if(arr[i] == 0){\n          count++;\n        }\n        if(arr[i] > 1){\n          return false;\n        }\n      }\n      if(count > 0)\n        return false;\n        return true;\n      \n      \n      \n        \n    }\n}\n```
['Java']