Featurespace interview question

Give in pseudocode a solution to a coding problem.