Easy
An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return true if n is ugly.
2
3
5
n
true
Input: n = 6 Output: true
Input: n = 14 Output: false
Input: n = 1 Output: true