Phenom Interview Question

Pseudocode for a problem statement