PhoneCheck interview question

Leetcode easy problem - fizzbuzz