NGSoft Interview Question

First interview - FizzBuzz algorithm implementation (easy) Second Interview - build algorithm that solve certain problem in O(1) (hard)