Phenom interview question

Pseudocode for a problem statement