Infilect interview question

Assignment, Standard ML questions, Behavioural round