HP Inc. Interview Question

FizzBuzz on the technical